package controller

import "ginfast/pkg/ginx"

// Dashboard 面板
type Dashboard struct {
}

type groupData struct {
	TotalMembers int     `json:"totalMembers"`
	TotalPoints  float64 `json:"totalPoints"`
	SalesVolume  float64 `json:"salesVolume"`
	TotalOrders  int     `json:"totalOrders"`
}

// GroupHandler 列表
func (Dashboard) GroupHandler(c *ginx.Context) {
	var data groupData
	c.JSONWriteData(data)
}

func (o Dashboard) Routers(r *ginx.RouterGroup) {
	r.GET("/group", o.GroupHandler)
}
